<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Ads_module extends MY_Module {
	
	public function __construct() {
		parent::__construct();
	}
	
	public function admin($config) {
		$this->view('admin', $config['config']);
	}
	
	/**
	 * 
	 * @param object $config
	 * 
	 */
	public function run($config) {
		$config_default = array(
			'view' => 'view_1',
			'limit' => 5,
			'title_link' => '',
			'order_by' => 'post_time_start',
			'order' => 'DESC',
			'cateid' => '0',
		);
		$config = array_merge($config_default,$config);

		$this->view($config['view'], $config);
	}
}